Stupid javascript form validator.