error fixes
method to validate jQuery element added