add form to show error if invalid input