Simple class for form validation in Flask and return dict