Completed the renaming function
Removed unused nested renaming function
Added back- and front-end resume validation for size and type