Added secure flag to cookie