User creation and login/logout functionality