Added login method