login refactoring UI