work rails with an encrypted password