messing with dynamic pdfs and some extra redirect for logins