Setup register page query and template