added login section
added logic to force use to redirect to login if not logged in