Cleaned up constructor. Ability to log out.