created error messages to show if forms are empty