Added the login method