use ng-model and add form
use ng-pattern and validators