How To Use Validation In Javascript