need to add function to update input when fixed, so that error message is removed
code working. needs styling.
validation works, but submit is buggy.