Login-logout functionality created