Changed to a from button in home template
Write token to localStorage in AuthService
Implemented SyncService