Added check to ensure input element passes validation when it is hidden by an Angular directive.