Updated failing of invoice creation.

 * returning 400 status code if there is a validation issue
 * making sure to end the response
 * printing back invoice if fails validation