a field directive to avoid boilerplate html code in forms
http://plnkr.co/edit/3zMsNnpNfOFwExSqLj2I?p=preview