Update User.php

Added setPassword method to hash a users password.