validate level before saving it