login: new login method implemented