Fixes required_if
Removes console logging
fixes required_if