validate_input function

Validates the variable browser inputs