php code for signup, login and logout