add validation function for subject edit page