Update User.php

fix problem with new user creation