add form to home page and display errors when validation failed