added validation error functionality

Adds a border on the text input when submit is pressed if canSubmit() returns false. Clears red border when text input is focused.