error messages display as div instead of alert