firxed password encoder bug