Added security checks to metabox saving.