commit before using devise