call sync method on login