fixed login and ticket