When a user tries to log in, hash the password they provided. Check if that hash corresponds to the hash saved in the database. If it does, let them in.
(Also, related: to increase the safety of your password storing even more, use a
salt[
^] with your hashes.)