renamed loginSesseion + added if-else