added authentigation for the portal