more input validation is js
Merge branch 'develop'
test case fail occasionally
disable auto_flush of sqlalchemy