fixes #36 and adds better slug validation to pages