Implemented login with users and hashed passwords stored in a database