Checking Secure cookie in production

Added code to make cookies secure in production