added wait password processing