Fix broken password validation