set up profile view, redirect non logged in users, edited prfile template