Added input form for adding a message and added logic to show the added messages to the homepage