redesign and implement js validation for backup and restore
improve the js validation for image upload/view