new task form using the directive for validation but now check the type of validations