Password reset function added.