fixed login and wait deploy