made security and made cookies readable in angular