move erorr into form creation