removes code complexity from users controller
Merge pull request #4 from keighty/bugfix

removes code complexity from users controller