New task validation

Added new task validation
Fixed some bad database programming throughout
Created new category form