correction in validation