Replcing multiple error divs with one

Also included a success and integrated the warning classes.