Will now show dialog instead of crashing when input fields are blank