Added error class for input elements. Fixes #28