Optional validation was mistakenly as success when no input was passed