creating simple login logout and register using php mysql