changed error message for validate_no_spaces