Don't dismiss dialog if fields are empty