modify handler, add template for profile, support links and logout and fake login