Check the user for empty data and display the message for each case