move sign in method from main ctrl to session ctrl