Creating the password reset method in the controller