Shouldn't in only validate when submit is pressed?