routes and json reply for signup