modify session error login, redirect root_path