Define user login method in sessions helper