footerScript

Cleaned some code, added user to localstorage after successfull login