fixed flash message in profile controller