Basic form validation with vanilla JavaScript - check for empty input, valid email and display appropriate errors