Altered login method, added new rake task to match