onFocusOut suggests this is an event handler method - maybe something like setupValidation would be better