Trying to make the login method work - please try this one out