added alert when trying to make a post with no title