File upload and validation working