added validation on document uploads and redirects to candidate edit page