change regheadteacher to function
change objects to functions
implement emis validation