Update User.java

changes according to the pull request comment