Fixed password validation bug