Validation and Error handler for Go lang