refactory ensureLoggedIn in project router
refactory factory_girl and create router_helper mixin