adding message error string and boolean