fixed application quit on cancel login