tweak in the login method