Split login GET/POST functions