Update User.php

update userExists to normal function