Fix a bug where student logins fail