added parsley validation