fixed issue updating team member roles
added validation for settings