Added new check

Check that clear=1 isn't followed by something else at end of query.
more checks for clear attribute