require mysql host and username
centralized validation functions