handle null case in validate express request