fix has_error? method
add error class if error_message present