Complete 2.4.7 Get/Reset Class Login Code

Also fixed bug where subscription not paid but teachers could still log
in