Updated front-end validation to work in FireFox