Fixed validation bug for new input type detection on submit