setting and getting inputs and errors from post, getSqlField method