Fix validation and add error printing to view