Fixed init code by changing to only update.
Commited working code for login and also with image tags added.