Adding Chemical Formula (Optional) text field functionality