fixed user controller update to enable correct update flash message to display on index pages for users after updating