Fixed a bug where put validation doesn't give feedback to client.