login, registration, sync local and remote DB