Fix comparison error in password module