Finish Logic allowing users to log in and log out again