Set up registration and sessions