added validates statements