make last name accept nulls and handle the error respond from the api