got validation working