added flash messaging to new user and edit pages