title: warden authentication returning 401
body: <p><code>warden.authenticate!(auth_options)</code></p>
  
  <p>working fine for these params:</p>
  
  <blockquote>
    <p>{"utf8"=>"✓",
    "authenticity_token"=>"5BMAUoZLUEgPZBVOAcQ8lFD4+pumP9kEvvXyelbnjeO36AZJQt2oRlraicQ6quvh/dccS0ELUkxjACgFcWFYAg==",
    "user"=>{"email"=>"vijay@xyz.com", "password"=>"xyz",
    "phone"=>"9443429932"}, "action"=>"create", "controller"=>"sessions",
    "format"=>"json", "session"=>{"user"=>{"email"=>"vijay@xyz.com",
    "password"=>"xyz", "phone"=>"9443429932"}}}</p>
  </blockquote>
  
  <p>but failing for these:</p>
  
  <blockquote>
    <p>{"utf8"=>"✓",
    "authenticity_token"=>"/ly2phwfsD3HEVkHK39ajYQGv6R4uj2z3B+3eiZEU0qtp7C92IlIM5KvxY0QEY34KSlZdJ+OtvsB6m0FAcKGqw==",
    "user"=>{"phone"=>"9443429932", "password"=>"xyz",
    "email"=>"vijay@xyz.com"}, "action"=>"create",
    "controller"=>"sessions", "format"=>"json",
    "session"=>{"user"=>{"phone"=>"9443429932", "password"=>"xyz",
    "email"=>"vijay@xyz.com"}}}</p>
  </blockquote>
  
  <p>The data is the same in both cases except for the order.
  Stuck with this for long.</p>
  
  <p>here is the log:</p>
  
  <blockquote>
    <p>Started POST "/users/sign_in.json" for 127.0.0.1 at 2017-04-10
    10:53:07 +0530 Processing by SessionsController#create as JSON<br>
    Parameters: {"utf8"=>"✓",
    "authenticity_token"=>"XVMbYLTgv4eFbv9pX5lJD3U6DHF17o18rVIjqQLo4skOqB17cHZHidDQY+Nk95562BXqoZLaBjRwp/nWJW43KA==",
    "user"=>{"phone"=>"9443429932", "password"=>"[FILTERED]"},
    "session"=>{"user"=>{"phone"=>"9443429932",
    "password"=>"[FILTERED]"}}}   User Load (0.3ms)  SELECT <code>users</code>.* FROM
    <code>users</code> WHERE <code>users</code>.<code>id</code> = 12422916 AND (invitation_token is null)
    LIMIT 1 Completed 401 Unauthorized in 15ms</p>
  </blockquote>