fix RegExp based validation
fix option 'valid' of params() after recent renaming