login window; bug fix