form validation if database name exists in the selected environment