AC: added validation for position, user_id, resource_id, resource_string