Layered potato and cheese bake