password length checking bugfix for Firefox