Fixed bug in validation, which made library-upload on library admin page fail