Refactor Login page