functional user login, signup and logout