.
Implemented login and logged out functions