validation working through html