Refactored validate-input directive.

- now used as attribute instead of element
- dependent on ng-model
- updated usage