Apply length limit to passwords.