fix form logs
improve json/redirect responses