Added email password code functionality to password reset.