Implemented input validation per issue# 1.
Flash input and integrate into form if validation fails. Issue# 2
fixed validation rules.