fixed redirect when logging into chat