Form Validation Using Regex In Javascript Example