fix ie login issue (add P3P header for ie iframe cookie handling)
pep8 and unused imports
Pass in redirect_to field and use it