angular form $valid

utilize angular $valid to validate form