Change your base URL from localhost to 127.0.0.1.
localhost
127.0.0.1
Using localhost as the domain in your base URL causes problems in Magento 2.
First of all you should remove the is_required option from the lastname attributes in the customer entity and address entity:
is_required