Changed error message from "or" to "and", changed hash_lookup to variable per @mpdehaan suggestions