With that, we can already check if a password is correct.

Nice! This is basically how programs check passwords.

Make sure that you create logged_in first and then store the result of the password check in it.