title: How implement Spring security when login page having more field apart from user name and password?
body: <p>I have a login page where the user need put the below information
  VIN number,email, zip code and accessCode which they will get from different application.</p>
  
  <p>So to validate a user I need all the information in my custom <code>UserDetailsService</code> class and then will called a procedure to authenticate the user.</p>
  
  <p>But I saw that when I implement the <code>UserDetailsService</code> like below </p>
  
  <pre><code>@Component
   public class LoginService implements UserDetailsService {
  @Autowired
  LoginStoredProcedureDao loginStoredProcedureDao;
  
  public Map&lt;String, Object&gt; verifyLogin(LoginDetails details) {
      return loginStoredProcedureDao.verifyLogin(details);
  
  }
  @Override
  public UserDetails loadUserByUsername(String username)
          throws UsernameNotFoundException {
      // TODO Auto-generated method stub
        //verifyLogin();
      return null;
  }
  
  }
  </code></pre>
  
  <p>The loginDetails Object is like below</p>
  
  <pre><code>public class LoginDetails {
  String vin;
  String email;
  String zipcode;
  String accessCode;
  }
  </code></pre>
  
  <p>In the above situation how to use spring security. Here the user need to give all information to validate him self.</p>