Check around these lines to properly implement the validation process