(1) adminPassword variable not needed; (2) error return must test for 'errors'.