basic validation of text input and email input