Custom validation using form source code and Regex