Vanilla JS Input Validation