adding validation for backup and restore