Fixing POST method handling