adds a common form to user.edit and user.add