login works and cookies work for login and profile pages