Checking teacher session

Authenticating the current teacher workspace. Checking API.