Add validation without using form submit