How To Validate Input Field In Javascript What Is A Block