fix for the password check (checked the wrong variable)