corrected minimum user count functionality to work on production db, added flash messages for responsiveness