Added an login attribute for patient logins. Created helpers and model methods.