Fixes #4. Login dialog will no longer repeatedly activate without user input.