Validate input corrected