checks to make sure name is passed, 422 if no name