moved error to server side.  This takes care of #8.