refactoring loginFainPage