modifying to add password field encryption.