user can login and logout once registered