Login/Logout functionality implemented a little bit further.