Added savepost to the list of error messages
If there's unsaved data, put all query data back into the form (this was shitty task)