adding flash success message when clicking submit photo button