Adding check for empty values
adding clear data button