The problem of identifying users when they log in is called
user authentication.
Most authentication methods are based on what the user knows (e.g: password),
what the user has (a plastic card),
or physical characteristics of the user (e.g: finger prints).