working flask form with a lot of extra stuff