Validation check added.