returned a success message when validation is completed