fix validation process