got basic validation working