login window validation