don't send id (null) to server when creating app, and display gracefully an error when server gives non-json 500 error