add 404 if required data is not passed