Fix to bug that was produced by earlier commit of changing front end for login