Issue with error span not getting cleared in jquery plugin