modified parsley validation api in order to return promises instead of bools
updated tests in order to use promises returned by validate and isValid