Get form name via attributes so it can work with ng-form elements
Check element $valid too