Added some checking of credentials for getStudentRecordById and updateStudentRecord in StudentResource.