Changed button to a on validation (otherwise form submit on click)