refactors code in password resets create action slightly but still runs into the same problem