add role attribute to form generation