Add tests around account

Changed the redirect after updating email back to the account edit
page. It makes more sense to see their update. Also added a flash.