Refactoring for saving on successful login
implemented observer pattern JS with Evgeny
Get Ajax login to respond to json
Render the header after successful login