Validate on submit with directive