got validation to work