added the RegExp field at $watch.
added $validator.validate() and sumit section at index.html
added promise at $validator.validate()