Added "try/throw/catch" and display of validation messages.