Moving login UI logic to AEFClient category