Added error classes to view helpers