add auth check for edit schema button