wip-Development

working on tests next
This is not a good function. If the entire function is "do something if method is POST" then that check should be moved outside the function and the function should just do the thing (the form.validate should probably be moved out too)