changes to send mail and recover password for user