Added method for showing main program when login