Reorder user data input so that LWP initialization comes later. This fixes an issue where login fails after the script has been waiting for user input.