login possibility via floating login window, cleanup code