@thyms added login and logout functionality.