Add validations and exception handlers to the front-end