implemented LoginHandler class