fixed validating