Finish form validation implementation
Add unit tests for the formValidate directive