Added validation to upload form