wtforms validation customised and completed