title: error in mapping form to case class in play 2 for scala
body: <pre><code>val registrationForm: Form[Registration]=Form(
  mapping(
  "fname"-&gt;text(minLength=2),
  "lname"-&gt;text(minLength=1),
  "userEmail"-&gt;text(minLength=5),
  "userPassword" -&gt; tuple(
      "main" -&gt; text(minLength = 6),
      "confirm" -&gt; text
    ).verifying(
      // Add an additional constraint: both passwords must match
      "Passwords don't match", userPassword =&gt; userPassword._1 == userPassword._2
    ),
  "gender"-&gt;number,
  "year"-&gt;number, 
  "month"-&gt;number, 
  "day"-&gt;number
  )
  {
  // Binding: Create a User from the mapping result (ignore the second password and the 
  accept field)
  (fname, lname, userEmail, userPassword, gender, year, month, day, _) =&gt; 
  Registration(fname,lname,userEmail,userPassword._1, gender, year,month,day)//error here
   } 
   {
    // Unbinding: Create the mapping values from an existing User value
  user =&gt; Some(user.fname, user.lname, user.userEmail,(user.userPassword, ""),
  user.gender, user.year, user.month, user.day, false)
  }
  
  )//end registrationForm
  </code></pre>
  
  <p>My case class is -</p>
  
  <pre><code>case class Registration(fname:String, lname:String, userEmail:String,
  userPassword:String, gender:Int, year:Int,month:Int, day:Int )
  </code></pre>
  
  <p>The above code is giving a error- wrong number of parameters; expected = 8. I have giving comment to the line in which error occurs</p>