Wirining up registration and logout endpoints.