title: Laravel 5 confirmation error message display in wrong field
body: <p>I would like to check if there is an error in my code I did not realize but why is my confirmation field's error message keep on displaying in the wrong filed? Suppose I have a password field and a password_confirmation field, but every time when user made a mistake in the password_confirmation field, the error displays in the password field instead. Here is a screenshot of the error.</p>
  
  <p><img src="https://i.stack.imgur.com/GBMSR.jpg" alt="invalid error message display"></p>
  
  <p>And here is how I validate the input using FormRequest:</p>
  
  <pre><code>public function rules()
  {
      $rules = [
      'login_email'           =&gt;  'required',
      'g-recaptcha-response'  =&gt;  'required|captcha',
      ];
  
      if ($this-&gt;request-&gt;has('password'))
      {
          $rules = [
          'password' =&gt; 'required|confirmed|between:6,200',
          'password_confirmation' =&gt; 'required',
          'g-recaptcha-response'  =&gt;  'required|captcha',
          ];
      }
  
      if ($this-&gt;request-&gt;has('old_password'))
      {
          $rules = [
          'old_password' =&gt; 'required|between:6,200',
          'password' =&gt; 'required|confirmed|between:6,200',
          'password_confirmation' =&gt; 'required',
          'g-recaptcha-response'  =&gt;  'required|captcha',
          ];
      }
  
      return $rules;
  }
  </code></pre>
  
  <p>Finally this is my html code</p>
  
  <pre><code>{!! Form::open(array('class' =&gt; 'form-horizontal login-form', 'url' =&gt; URL::route('postReset'), 'method' =&gt; 'POST')) !!}
              &lt;div class="form-group"&gt;
                  &lt;div class="col-md-12 col-sm-12"&gt;
                      {!! Form::password('password', array('class' =&gt; 'form-control', 'placeholder' =&gt; 'New Password*')); !!}
                      {!! MessagerService::setInlineError($errors-&gt;first('password')) !!}
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="form-group"&gt;
                  &lt;div class="col-md-12 col-sm-12"&gt;
                      {!! Form::password('password_confirmation', array('class' =&gt; 'form-control', 'placeholder' =&gt; 'Retype New Password*')); !!}
                      {!! MessagerService::setInlineError($errors-&gt;first('password_confirmation')) !!}
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="form-group"&gt;
                  &lt;div class="col-md-12 col-sm-12"&gt;
                      {!! app('captcha')-&gt;display(); !!}
                      {!! MessagerService::setInlineError($errors-&gt;first('g-recaptcha-response')) !!}
                  &lt;/div&gt;
              &lt;/div&gt;                  
  
              &lt;div class="form-group"&gt;
                  &lt;div class="col-md-12 col-sm-12"&gt;
                      &lt;button type="submit" class="btn btn-primary cbtn-login"&gt;Reset Password&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
              &lt;input type="hidden" name="hash" value="{{ Session::get('hash') }}"&gt;
  {!! Form::close() !!}
  </code></pre>