added debug for posted fields