In the case of username/password, the values entered may be verified locally or (in the case of a domain login) remotely. Remote logins use either NTLM (NT LAN Manager) which is a challenge/response mechanism, or Kerberos which uses a series of symetrically encrypted "tickets".
Once the user has been authenticated, the system does an initialization of the user's environment.
Next: Initialization of User's Environment