wait_for_login() related update

Redhat ID: 1080834



Oh, Sorry to make a mistake here. Then this looks good to me. Will have a test with it. Thanks a lot.