fixed bugs in candidate checkbox validation JS, and added a timer to make the warning div go away after 5 seconds