handle errors from user validation