login page refactored