Use MessageDialog instead of Flyout. Check if user input is empty.