error message class instead of hard coded string