login page refactoring