Fix double-clicking image login causing crash/hang

Signed-off-by: Steven Downer <grinch@outlook.com>