if fields are not valid, error modal is shown when an app is run