fix can't view registration index without login