added routes for register and details