add the default value for required