hooked up registration with RESTful backend