Block form submit after XMLHttpRequest

Some workarounds have been discussed here: Async $http.post request validation