fixed crypting password by authentication type