basic signup, login and logout logic