add validation to home form