Added login screen and login/logout functionality with login persistence