fixed the error message now it is displayed using the appropriate css class