Moved slug generation to the event model. Fixed url check.