And again, surely validation should only be done on submit? Indentation is wrong.