remove deprecation warning
fix the post form