Validation & bug fix for uploads

Uses alerts. I know I know...