Fix $app connection in Register Method

Register method failed to get a copy of the Application for all uses.
Merge pull request #1180 from AmyStephen/patch-1

Fix $app connection in Register Method of UsersControllerUser