add password encoder