Added login controller and localstorage addon