updated postTask.js

Success message added right after posted tasks..