Added error printing to forms