refactored user model, homepage controller and nav bar controller to pla...

...ce  in appropriate place, plus add semi colons