ajax errors now displayed properly
removed incorrect db constraint