Added login form and routing rules after login.