title: Spring security First login fails, second login succeeds
body: <p>I'm using spring security and i got some awkward error.
  The first time that I make an login attempt it fails and redirect to a page with error 403.
  But in the next attempt, after return to page login, it succeeds! What's is going on!?</p>
  
  <p>Below the important part of my xml:</p>
  
  <p><code>&lt;sec:http auto-config="true" &gt;
      &lt;sec:form-login login-page="/" default-target-url="/_validate"
      authentication-failure-url="/_loginFailure" /&gt;
      &lt;sec:http-basic/&gt;
  &lt;/sec:http&gt;</code></p>
  
  <p>Unfortunately, I can't put the entire code here... some suggestion?</p>