fix error when adding user from dashboard