Small change

Made the submitPost method a little more efficient