Commit before changing registration form