Fixed password checking