Fixed password check error when password is null.