Finished user login and logout