added error state to create recipient