Add form validation.
Fix problem with dupes in ngRepeat.