added the login and logout function