fix setPassword method