refactor invitation form to assign city to new users
fix failing test: wrong message showing after updating team