ticket2: crash fixed and login button added