Validating multiple inputs as one