Account for token expiry, add student and admin logout functions to call if token is expired.