Add preg_match to validate input