Fix Login feature and add Logout feature