user login and logout complete