fixed registration procedure: user.id nil issue in before_save, devise definition not exists