adding in auto close of login window and customization of context and messaging.