Tweaks to Code

Added form validation for category need to dig into code to see why
required.
use num_rows instead of sizeof for recordset.