Fixed login redirection and implemented ticket counter.