added flash message when checking solution