[WIP] Add user authentication function

- [x] Fix indent of User.php