made better security for edit student and teacher

authorisation is school dependant as well