disable button if form is invalid
added directive that detects domain format