Fix login bug, send ticket ready