If the event is over , the custom form should not be seen. and and error handling function should be added