Linked loginController and loginFactory