Implemented basic logins and logouts