- extract form parsing into helper method app.decodePostForm - extract field checks into form.Validate