Fixed a few minor bugs, added clientside validation rules, updated TODOs, etc.