Added Login Logout logic