added route for register view