Error handling on emails.
separate function from view for generic usage
Get the details of an os by giving the img_id
Select os when reinstalling vm.
Needs some corner cases handling.