Do not allow empty spaces

check field only if there is something in the field