use django's builtin ValidationError in api
frontend note indention