Error handling

Addressing issue #10 

Left to do is displaying of validation errors in forms in frontend.