adding error message for empty form fields