You can customize the login.jsp page to accept additional inputs from the user in the Sign In screen. By default, the Sign In screen accepts two fields, user name and password. After adding the required additional fields, you can validate or authenticate the newly added fields.
To customize the login.jsp: