Fixed problem with validation.