Add logging to password check