fix student/instructor account_type check method