auth works but js is not redirecting yet.