Added a couple login-related functions to supercontroller