Modified the threads by adding login page