properly handle registration page while authenticated