validation, sanitisation and inline error viewing modes