Check Input Field Value Javascript Format