Added validate, isValid and isInvalid