login and register commit