totally chill input validation function