added login and Logout methods with request Implementation