Add css classes for success and error.