Replaced errorbox div with an alert.