fixed issue with initialize always rendering login template