Fixed issue that prevented logging in. Added ability to logout.