added flash message for success