Fixed a bug with Firefox and the validation