Template changing if user is logged in fully functional