Validate input to BASH