Sync login, register, logout from the main branch