fix mandatory check
adapt behaviour of empty regular expression field: if not mandatory it is valid