Use a method to submit the post
Add to submit post method to throw error when there's blank url