added required logic for showing paste and no paste files
validation not really neccessary, as it is constraned in db