refactored User.js
Merge pull request #207 from jamesyothers/master

refactored User.js