Slug validation bug

Slug validation bug - slug wasn't actually checked due to if statement parentheses/logic error. 

CSRF upon errors

If user entered invalid value which generated Flash error, the CSRF token used for regenerated View was set with invalid path so user additionally got "Invalid CSRF token found" message.

This forced user to load clean (non-POST) version of page and start all edits again.

Fixed CSRF for View to reflect the same path as POSTing page (page/edit/# or page/add)
slugcheck correction by @mvdkleijn
Merge pull request #491 from marekmurawski/page-edit-fixes

Slug validation/csrf error in edit page