fixing require_POST