Forcing text input elements to have type attribute