Using constants to handle rules states
So as to not rely on the fact that the return is either a boolean or
array
Only set the parsley attrib when needed
Otherwise a bug occourd that caused the rule of the previous elements
rules were being applied to the current element