refactor validator a bit

better handling of null/false error response