fix migration, user name cannot be empty