he had recently obtained a new job working for the parks department however the diet of hungary declared ladislaus's coronation invalid and elected vladislaus king