Cookie data not available on first time login even now