Enabling reset password functionality to send code to emails