Generally, when the guest hasn't updated their last name while signing up with the app or iframe and try to log in on the website to place an order, "Please provide a valid last name" error is displayed. Please refer to the error screenshot below:
In such cases, either the last name details has to be updated on the guest profile via Punchh platform or the guest needs to login via app and update the last name in the app.