Revert "Correctly renders the JSON response"

This reverts commit 50b445f5117e06030f45b280f63ee7a6c964e887.
Close #17 - The register Api now returns errors as JSON