Write Cookie after login and add no-upload folder