refactoring session login function name