login and sync is working