Javascript Interactive Form Validator