File validation when adding a log in admin view (issue #4)