fixed validation.