including Login/Logout function