Redirect on visit, moved login info to env variables