title: Form validation not working in angularjs
body: <p>Here is my form validation. Only the password match and required is working. But the firstname and email validation is not working. </p>
  
  <p><strong>The email validation is not working</strong></p>
  
  <pre><code>&lt;input placeholder="Email" class="text_box1" type="text" name="email" ng-model="signup.email"  style="width:236px;"&gt;
  &lt;span class="errorMessage"  ng-show="signupForm.email.$error.email" class="help-inline"&gt;Email is not valid&lt;/span&gt; 
  &lt;span class="errorMessage"  ng-show="signupForm.email.$error.required" class="help-inline"&gt;Email is required.&lt;/span&gt;
  </code></pre>
  
  <p><strong>The password validation is working good</strong></p>
  
  <pre><code>&lt;input placeholder="Password" class="text_box1" type="text" name = "password" placeholder="Password" ng-model="signup.password"  style="width:236px;"&gt;
  &lt;small class="errorMessage" data-ng-show="signupForm.password.$dirty &amp;&amp; signupForm.password.$invalid"&gt; Enter Password.&lt;/small&gt;
  &lt;input placeholder="Confirm Password" class="text_box1" type="text"  name="password2" placeholder="Password Again" ng-model="signup.password2" password-match="signup.password"  style="width:236px;"&gt;
  &lt;small class="errorMessage" data-ng-show="signupForm.password2.$dirty &amp;&amp; signupForm.password2.$error.required"&gt; Enter password again.&lt;/small&gt;
  &lt;small class="errorMessage" data-ng-show="signupForm.password2.$dirty &amp;&amp; signupForm.password2.$error.passwordNoMatch &amp;&amp; !signupForm.password2.$error.required"&gt; Password do not match.&lt;/small&gt;
  </code></pre>
  
  <p>I am disabling the button by default and making it valid only if the form is valid, but due to the above issue, once the password validation works the button is enabled.</p>
  
  <pre><code>&lt;button class="sign_up" ng-click="doReg()" data-ng-disabled="signupForm.$invalid"&gt;Sign up&lt;/button&gt;
  </code></pre>
  
  <p><strong>How can i make the email validation work, so that the button will be enabled only after email validation is satisfied. ?</strong></p>
  
  <p><strong>Note :</strong> I aim for the required and valid email validation</p>