Update User.php

fixed user password update issue.