login with session cookie errors solved