map and error in form