Wiring backend for login.  Not tested, but running.