Cleanup user controller, added some variables
Moved PHP code from View to Controller
Merge pull request #218 from sergeyklay/user

User