basic validation. still need to trim spaces to/from mode to screen though.
Merge branch 'validation'

* validation:
  basic validation. still need to trim spaces to/from mode to screen though.