Adding possibility to delete file and logout