changes to support ajax redirect to dashboard after login.