Fixed password check