Fixed duplicate error message when client validation is enabled