commit before rewriting user login