try-catch the validation process