Fix for omni-auth and teacher/student api calls