Update User.php

Fixes #11
Merge pull request #12 from it3rmit/patch-1

Update User.php