now validates input

fields turn from red to green when text has been validated