Focus the first bad form element and return alerts for bad form submissions