Refactor new post form