fixed devise and pages controller errors

Devise wasn't working here. Made it so that it does work here. Also added support for static pages.