redirect users to page if they are not linked to a class