Added validation and error message to maven client