Implemented basic login/logout/authentication