added conditions in block to deal with errors  when nothing is input from the user
same commit without the dummy videos