Redirected to log out and back to index upon successful registration