Changed login to return JSON only, added redirect for users with no parent information, refresh page on login instead of redirecting