verifies the dict in the request more

verifies even the key image_schedule and retention to be in the req
body. Currently for a bad request, it will give 500 and not a helpful
message.